const { ipcRenderer } = require("electron");
window.addEventListener("DOMContentLoaded", () => {
  document.querySelector("header").addEventListener("click", (e) => {
    if (e.target?.dataset?.win) {
      ipcRenderer.send("win", e.target.dataset.win);
    };
  });
});